drm/amdgpu/display/mst: update mst_mgr relevant variable when long HPD
authorWayne Lin <Wayne.Lin@amd.com>
Mon, 12 Dec 2022 07:41:18 +0000 (15:41 +0800)
committerSalvatore Bonaccorso <carnil@debian.org>
Sun, 29 Jan 2023 12:33:36 +0000 (12:33 +0000)
commit77902ee009325bc4cbb15e54070ab48797045188
tree490166f5015f61219f59fe2c1a9acb0062b0059f
parent6cca14ac77f2e1353d60dcfb90127122cc3d05b2
drm/amdgpu/display/mst: update mst_mgr relevant variable when long HPD

Origin: https://git.kernel.org/linus/f85c5e25fd28fe0bf6d6d0563cf83758a4e05c8f
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2171
Bug-Debian: https://bugs.debian.org/1028451

[Why & How]
Now the vc_start_slot is controlled at drm side. When we
service a long HPD, we still need to run
dm_helpers_dp_mst_write_payload_allocation_table() to update
drm mst_mgr's relevant variable. Otherwise, on the next plug-in,
payload will get assigned with a wrong start slot.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2171
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Fixes: 4d07b0bc4034 ("drm/display/dp_mst: Move all payload info into the atomic state")
Cc: stable@vger.kernel.org # 6.1
Acked-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Tested-by: Didier Raboud <odyx@debian.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name drm-amdgpu-display-mst-update-mst_mgr-relevant-varia.patch
drivers/gpu/drm/amd/display/dc/core/dc_link.c